package com.iceframework.core.request;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.DispatcherServlet;

/**
 * 重写doDispatch方法，该方法是所有请求得总入口，把request转到自定义的类里面
 * 
 * @author Palo
 *
 */
public class MyDispatcherServlet extends DispatcherServlet {

	private static final long serialVersionUID = 1L;

	@Override
	protected void doDispatch(HttpServletRequest request, HttpServletResponse response) throws Exception {
		super.doDispatch(new MyRequest(request), response);
	}

}